// 定义组件
define(function (require,exports,module) {
    var VueStore = {
        state : {
            login: '',//是否登录
            position:''
        },
        mutations:{
            LOGIN:function (state, data){
                localStorage.setItem('login',JSON.stringify(data));
                state.login = data;
            },
            SAVE_POSITION:function (state, data){
                localStorage.setItem('position',JSON.stringify(data));
                state.position = data;
            }
        }
    };
    module.exports = VueStore;
});
